package com.nondo.dean.pay.consumer.controller;

import com.nondo.dean.pay.util.MyLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.nondo.dean.pay.consumer.service.PayChannelServiceClient;
import com.nondo.dean.pay.util.MyLog;

/**
 * @Description: 支付渠道查询
 * @author zhaolijin
 * @date 2018-02-07
 * @version V1.0
 * @Copyright: www.luobole.com
 */
@RestController
public class PayChannelController {

    private final MyLog _log = MyLog.getLog(PayChannelController.class);

    @Autowired
    private DiscoveryClient client;

    @Autowired
    private PayChannelServiceClient payChannelServiceClient;

    
    /**
     * 获取支付渠道接口:
     * @param params
     * @return
     */
    @RequestMapping(value = "/pay/channel_list")
    public String queryPayOrder(@RequestParam String params) {
    	_log.info("输入参数：pamrams={}", params);
    	return payChannelServiceClient.getPayChannel(params);
    }

}
